//
//  CarouselObj.m
//  Brand
//
//  Created by Faker on 5/7/14.
//  Copyright (c) 2014 Faker. All rights reserved.
//

#import "CarouselObj.h"

@implementation CarouselObj

- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    if(self)
    {
        self.title = [aDecoder decodeObjectForKey:@"title"];
        self.idOrUrl = [aDecoder decodeObjectForKey:@"idOrUrl"];
        self.pic = [aDecoder decodeObjectForKey:@"pic"];
        self.type = [aDecoder decodeObjectForKey:@"type"];
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.title forKey:@"title"];
    [aCoder encodeObject:self.idOrUrl forKey:@"idOrUrl"];
    [aCoder encodeObject:self.pic forKey:@"pic"];
    [aCoder encodeObject:self.type forKey:@"type"];
}

@end
